package com.example.backblog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.backblog.entity.blog.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper

public interface BlogMapper extends BaseMapper<Blog> {
    @Update("update Blog set top=0")
    int resetBlogTop();
    @Select("select id from Blog where deleteFLag = 1")
    List<Long> findDeleteId();
}
